package lesson;

public class Deom02 {

	public static void main(String[] args) {
		int [] nummax = {1,2,3,4,5};
		
		int result = bigger(nummax);
		
	}
	public static int bigger(int[] nummax) {
		int max =nummax[0];
		for (int i = 1; i < nummax.length; i++) {
			if(nummax[i]>max) {
				max = nummax[i];
			}
		}
		return max;
	}
	
}
